FROM python:3
ENV PYTHONUNBUFFERED 1

#链接开发环境数据库
ENV DJANGO_DATABASE_CONNECT local

#RUN apt-get update
#RUN apt-get install -y vim
RUN mkdir /code
WORKDIR /code
ADD requirements.txt /code/
RUN pip install -r requirements.txt
ADD . /code/
EXPOSE 8000
#CMD ['python', 'manage.py', 'runserver', '0.0.0.0:8000']
#RUN python manage.py runserver 0.0.0.0:8000
#LABEL aliyun.log_store_dbstdout=stdout
